package com.mdxl.dao.xml;

import com.mdxl.Entity.Account;
import com.mdxl.mapper.MbAccountMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by chengjian on 2017/9/12.
 */
@Repository
public class MbAccountXmlDao {

    @Autowired
    private MbAccountMapper accountMapper;

    public int insertUserWithBackId(Account user){
        return accountMapper.insertAccountXmlDao(user);
    }

    public List<Account> gainAllAccount(){
        return accountMapper.getListAccount();
    }
}
